
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.13.2-1.14.4 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5.html" />
    
    
    <link rel="prev" href="4.2.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <a target="_blank" href="https://github.com/xfl03/CoreModTutor">
            
                    
                    源代码仓库（求star）
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    目录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="0.html">
            
                <a href="0.html">
            
                    
                    0 绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    1 简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="1.1.html">
            
                <a href="1.1.html">
            
                    
                    CoreMod
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="1.2.html">
            
                <a href="1.2.html">
            
                    
                    Java虚拟机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="1.3.html">
            
                <a href="1.3.html">
            
                    
                    Minecraft混淆方式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    2 Java虚拟机
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" >
            
                <span>
            
                    
                    ClassLoader类加载器
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" >
            
                <span>
            
                    
                    ByteCode字节码
            
                </span>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" >
            
                <span>
            
                    
                    ASM
            
                </span>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    3 原版 CoreMod
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="3.1.html">
            
                <a href="3.1.html">
            
                    
                    直接修改class文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="3.2.html">
            
                <a href="3.2.html">
            
                    
                    JavaAgent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="3.3.html">
            
                <a href="3.3.html">
            
                    
                    LaunchWrapper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="3.4.html">
            
                <a href="3.4.html">
            
                    
                    ModLauncher
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" >
            
                <span>
            
                    
                    4 FML CoreMod
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="4.1.html">
            
                <a href="4.1.html">
            
                    
                    1.3.2-1.5.2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="4.2.html">
            
                <a href="4.2.html">
            
                    
                    1.6.1-1.12.2
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.7.3" data-path="4.3.html">
            
                <a href="4.3.html">
            
                    
                    1.13.2-1.14.4
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="5.html">
            
                <a href="5.html">
            
                    
                    5 Mixin
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="5.1.html">
            
                <a href="5.1.html">
            
                    
                    配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="5.2.html">
            
                <a href="5.2.html">
            
                    
                    引导
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="5.3.html">
            
                <a href="5.3.html">
            
                    
                    注入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="5.4.html">
            
                <a href="5.4.html">
            
                    
                    修改
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="5.5.html">
            
                <a href="5.5.html">
            
                    
                    定位
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="5.6.html">
            
                <a href="5.6.html">
            
                    
                    融合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="5.7.html">
            
                <a href="5.7.html">
            
                    
                    扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="5.8.html">
            
                <a href="5.8.html">
            
                    
                    调试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" >
            
                <span>
            
                    
                    附录
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="附录A.html">
            
                <a href="附录A.html">
            
                    
                    附录A 相关工具下载
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="附录B.html">
            
                <a href="附录B.html">
            
                    
                    附录B 常见Java字节码指令表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="附录C.html">
            
                <a href="附录C.html">
            
                    
                    附录C 参考资料
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >1.13.2-1.14.4</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="1132-1144-fml-coremod&#x5927;&#x4E8B;&#x8BB0;">1.13.2-1.14.4 FML CoreMod&#x5927;&#x4E8B;&#x8BB0;</h1>
<ul>
<li>1.13.2 &#x5F15;&#x5165;<a href="https://github.com/cpw/modlauncher" target="_blank">ModLauncher</a><ul>
<li>LaunchWrapper&#x88AB;&#x820D;&#x5F03;</li>
<li>FML 1.3.2&#x4F7F;&#x7528;&#x81F3;&#x4ECA;&#x7684;Mod&#x52A0;&#x8F7D;&#x673A;&#x5236;&#x88AB;&#x91CD;&#x5199;</li>
<li>Forge&#x5B9E;&#x73B0;&#x4E86;&#x4E00;&#x5B9A;&#x7A0B;&#x5EA6;&#x7684;&#x6A21;&#x5757;&#x5316;&#xFF0C;&#x7531;<a href="https://github.com/MinecraftForge/CoreMods" target="_blank">CoreMods</a>&#x6A21;&#x5757;&#x8C03;&#x5EA6;&#x8FD0;&#x884C;CoreMod</li>
<li>&#x4FEE;&#x6539;&#x5176;&#x4ED6;class&#x7684;&#x884C;&#x4E3A;&#x9700;&#x8981;&#x5728;JavaScript&#x811A;&#x672C;&#x4E2D;&#x53D7;&#x9650;&#x8FDB;&#x884C;&#xFF0C;&#x51E0;&#x4E4E;&#x65E0;&#x6CD5;&#x4F7F;&#x7528;ASM Core API&#xFF0C;&#x9700;&#x8981;&#x6539;&#x6210;ASM Tree API</li>
<li>Forge&#x548C;FML&#x5F00;&#x59CB;&#x4F7F;&#x7528;&#x5927;&#x91CF;Java 8&#x7279;&#x6027;</li>
<li>&#x4E0D;&#x518D;&#x8FDB;&#x884C;&#x8FD0;&#x884C;&#x65F6;&#x53CD;&#x6DF7;&#x6DC6;&#xFF0C;&#x8F6C;&#x800C;&#x5728;&#x5B89;&#x88C5;&#x65F6;&#x76F4;&#x63A5;&#x8C03;&#x7528;<a href="https://github.com/md-5/SpecialSource" target="_blank">SpecialSource</a>&#x751F;&#x6210;srg&#x6DF7;&#x6DC6;&#x7684;Minecraft&#x6838;&#x5FC3;&#x6587;&#x4EF6;</li>
<li>binpatch&#x4E5F;&#x540C;&#x6837;&#x4F7F;&#x7528;&#x4E86;srg&#x6DF7;&#x6DC6;&#xFF0C;&#x5728;&#x8FD0;&#x884C;&#x65F6;&#x5BF9;Minecraft&#x8FDB;&#x884C;&#x4FEE;&#x6539;</li>
<li><a href="https://github.com/MinecraftForge/MinecraftForge/commit/6a1337aa92365420290a0533937adbc2b6e26890" target="_blank">1.13.2-25.0.199</a> &#x66F4;&#x65B0;ModLauncher 1.1&#xFF0C;&#x4E0D;&#x518D;&#x4F7F;&#x7528;<code>URLClassLoader</code>&#x8FDB;&#x884C;Mod&#x7C7B;&#x52A0;&#x8F7D;&#xFF0C;&#x540C;&#x65F6;&#x4F1A;&#x5728;&#x5D29;&#x6E83;&#x62A5;&#x544A;&#x7684;&#x8C03;&#x7528;&#x6808;&#x4E2D;&#x663E;&#x793A;&#x7C7B;&#x7684;&#x4FEE;&#x6539;&#x6765;&#x6E90;</li>
<li><a href="https://github.com/MinecraftForge/MinecraftForge/commit/c57c6213ea531aa7f7ef71510b752bd37d1dd608" target="_blank">1.13.2-25.0.216</a> &#x589E;&#x52A0;<a href="https://github.com/MinecraftForge/MinecraftForge/blob/1.14.x/src/fmllauncher/java/net/minecraftforge/fml/loading/ModDirTransformerDiscoverer.java" target="_blank"><code>ModDirTransformerDiscoverer</code></a>&#xFF0C;ModLauncher&#x7684;<code>ITransformationService</code>&#x4E5F;&#x53EF;&#x4EE5;&#x88AB;&#x52A0;&#x8F7D;&#x4E86;</li>
</ul>
</li>
</ul>
<h1 id="java-&#x8FD8;&#x662F;-javascript&#xFF1F;">Java &#x8FD8;&#x662F; JavaScript&#xFF1F;</h1>
<p>&#x4ECE; 1.13.2-25.0.216 &#x5F00;&#x59CB;&#xFF0C;FML&#x4F1A;&#x5C1D;&#x8BD5;&#x52A0;&#x8F7D;&#x4EC5;&#x5B9E;&#x73B0;&#x4E86;<code>ITransformationService</code>&#x7684;Mod&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x8BF4;&#xFF0C;&#x6211;&#x4EEC;&#x53C8;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;Java&#x8FDB;&#x884C;CoreMod&#x7684;&#x7F16;&#x5199;&#x4E86;&#x3002;<br>&#x4F46;&#x662F;&#xFF0C;&#x5728; <a href="https://github.com/MinecraftForge/MinecraftForge/commit/0bdc2d04b4bef9eb19e01d22720f19240a240241" target="_blank">1.14.4-28.0.17</a> &#x4E2D;&#xFF0C;cpw&#x5C06;&#x81EA;&#x5DF1;&#x4E3A;Forge&#x7F16;&#x5199;&#x7684;&#x4E00;&#x4E2A;<code>ITransformationService</code>&#x4F7F;&#x7528;JavaScript&#x8FDB;&#x884C;&#x91CD;&#x5199;&#xFF0C;&#x8FD9;&#x610F;&#x5473;&#x7740;cpw&#x5BF9;&#x4F7F;&#x7528;JavaScript&#x7F16;&#x5199;CoreMod&#x662F;&#x6709;&#x4E00;&#x5B9A;&#x7A0B;&#x5EA6;&#x7684;&#x8BA4;&#x53EF;&#x7684;&#x3002;<br>&#x4F7F;&#x7528;Java&#x6216;JavaScript&#x7F16;&#x5199;CoreMod&#x5404;&#x6709;&#x4F18;&#x52A3;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x6839;&#x636E;&#x5B9E;&#x9645;&#x60C5;&#x51B5;&#x9009;&#x62E9;&#x66F4;&#x4E3A;&#x5408;&#x9002;&#x7684;&#x5199;&#x6CD5;&#xFF0C;&#x751A;&#x81F3;&#x6DF7;&#x5408;&#x7F16;&#x5199;&#xFF1A;</p>
<table>
<thead>
<tr>
<th>&#x9879;&#x76EE;</th>
<th>Java</th>
<th>JavaScript</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#x53EF;&#x8FFD;&#x8E2A;&#x6027;</td>
<td>&#x4F1A;&#x5728;&#x5D29;&#x6E83;&#x62A5;&#x544A;&#x7B49;&#x8C03;&#x8BD5;&#x4FE1;&#x606F;&#x4E2D;&#x663E;&#x793A;&#x7C7B;&#x4FEE;&#x6539;&#x6765;&#x6E90;&#x7684;&#x8F6C;&#x6362;&#x5668;&#x540D;&#xFF0C;&#x9700;&#x8981;&#x89C4;&#x8303;&#x547D;&#x540D;&#x624D;&#x6709;&#x53EF;&#x80FD;&#x8BA9;&#x7528;&#x6237;&#x53D1;&#x73B0;&#x95EE;&#x9898;&#x6765;&#x6E90;</td>
<td>&#x4F1A;&#x5728;&#x5D29;&#x6E83;&#x62A5;&#x544A;&#x7B49;&#x8C03;&#x8BD5;&#x4FE1;&#x606F;&#x4E2D;&#x663E;&#x793A;&#x7C7B;&#x4FEE;&#x6539;&#x6765;&#x6E90;&#x7684;modid&#x4E0E;&#x8F6C;&#x6362;&#x5668;&#x540D;&#xFF0C;&#x66F4;&#x6613;&#x4E8E;&#x7528;&#x6237;&#x53D1;&#x73B0;&#x95EE;&#x9898;&#x6765;&#x6E90;</td>
</tr>
<tr>
<td>&#x7F16;&#x5199;&#x96BE;&#x5EA6;</td>
<td>&#x9700;&#x8981;&#x624B;&#x52A8;&#x5B9E;&#x73B0;<code>ITransformationService</code>&#x4E0E;<code>ITransformer</code>&#x63A5;&#x53E3;&#xFF0C;&#x4EE5;&#x53CA;&#x58F0;&#x660E;ServiceLoader&#xFF0C;&#x4EE3;&#x7801;&#x7F16;&#x5199;&#x8F83;&#x7E41;&#x7410;</td>
<td>&#x53EA;&#x9700;&#x8981;&#x6309;&#x7167;&#x683C;&#x5F0F;&#x58F0;&#x660E;&#x8981;&#x4FEE;&#x6539;&#x7684;&#x5185;&#x5BB9;&#x5E76;&#x5B8C;&#x6210;&#x4FEE;&#x6539;&#x7684;&#x51FD;&#x6570;&#x5373;&#x53EF;</td>
</tr>
<tr>
<td>&#x4EE3;&#x7801;&#x63D0;&#x793A;</td>
<td>&#x6709;&#x5B8C;&#x6574;&#x4EE3;&#x7801;&#x63D0;&#x793A;</td>
<td>&#x57FA;&#x672C;&#x8BED;&#x6CD5;&#x6709;&#x4EE3;&#x7801;&#x63D0;&#x793A;&#xFF0C;&#x5C1A;&#x65E0;&#x5BF9;ASM&#x7684;&#x5B8C;&#x6574;&#x4EE3;&#x7801;&#x63D0;&#x793A;</td>
</tr>
<tr>
<td>&#x64CD;&#x4F5C;&#x98CE;&#x9669;</td>
<td>&#x9700;&#x8981;&#x5F00;&#x53D1;&#x8005;&#x7279;&#x522B;&#x6CE8;&#x610F;&#x4E0D;&#x80FD;&#x5728;CoreMod&#x9636;&#x6BB5;&#x8C03;&#x7528;&#x4EFB;&#x4F55;&#x539F;&#x7248;&#x7C7B;&#x548C;&#x5176;&#x4ED6;Mod&#xFF0C;&#x63D0;&#x524D;&#x52A0;&#x8F7D;&#x8FD9;&#x4E9B;&#x7C7B;&#x4F1A;&#x5BFC;&#x81F4;&#x9519;&#x8BEF;</td>
<td>&#x4E0D;&#x4F1A;&#x5BFC;&#x81F4;&#x7C7B;&#x63D0;&#x524D;&#x52A0;&#x8F7D;</td>
</tr>
<tr>
<td>&#x81EA;&#x7531;&#x7A0B;&#x5EA6;</td>
<td>&#x9664;&#x4E86;Java&#x7684;&#x5B89;&#x5168;&#x9650;&#x5236;&#x5916;&#xFF0C;&#x5B8C;&#x5168;&#x81EA;&#x7531;</td>
<td>&#x53D7;&#x9650;&#x7684;&#x7C7B;&#x8BBF;&#x95EE;&#xFF0C;&#x53EA;&#x80FD;&#x4F7F;&#x7528;Java&#x57FA;&#x672C;&#x7C7B;&#x3001;ASM&#x4E0E;<code>ASMAPI</code></td>
</tr>
<tr>
<td>ASM</td>
<td>&#x53EF;&#x4EE5;&#x4F7F;&#x7528;Tree API&#x4E0E;Core API</td>
<td>&#x53EA;&#x80FD;&#x4F7F;&#x7528;Tree API</td>
</tr>
</tbody>
</table>
<p>&#x5EFA;&#x8BAE;&#x5728;&#x4F7F;&#x7528;Tree API&#x8FDB;&#x884C;&#x7B80;&#x5355;&#x7684;&#x4FEE;&#x6539;&#x64CD;&#x4F5C;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x8003;&#x8651;&#x66F4;&#x4E3A;&#x4FBF;&#x6377;&#x7684;JavaScript&#xFF1B;&#x5BF9;&#x4E8E;&#x4E0D;&#x719F;&#x6089;ASM&#x9700;&#x8981;&#x4EE3;&#x7801;&#x63D0;&#x793A;&#x7684;&#x5F00;&#x53D1;&#x8005;&#xFF0C;&#x6216;&#x662F;&#x9700;&#x8981;Core API&#x8FDB;&#x884C;&#x590D;&#x6742;&#x7684;&#x4FEE;&#x6539;&#x64CD;&#x4F5C;&#x65F6;&#xFF0C;Java&#x53EF;&#x80FD;&#x4F1A;&#x662F;&#x66F4;&#x597D;&#x7684;&#x9009;&#x62E9;&#x3002;<br>&#x82E5;&#x662F;&#x60F3;&#x4F7F;&#x7528;Java&#x8FDB;&#x884C;CoreMod&#x7F16;&#x5199;&#xFF0C;&#x8BF7;&#x53C2;&#x8003;<a href="3.4.html">ModLauncher&#x6559;&#x7A0B;</a>&#xFF1B;&#x6B32;&#x4F7F;&#x7528;JavaScript&#x8FDB;&#x884C;CoreMod&#x7F16;&#x5199;&#xFF0C;&#x8BF7;&#x53C2;&#x8003;&#x4E0B;&#x6587;&#x3002;</p>
<h1 id="&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;">&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;</h1>
<p>&#xFF08;&#x5BF9;&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;&#x4E0D;&#x611F;&#x5174;&#x8DA3;&#x7684;&#x8BDD;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x8DF3;&#x8FC7;&#x8FD9;&#x4E00;&#x90E8;&#x5206;&#xFF0C;&#x4EE5;&#x4E0B;&#x4EE3;&#x7801;&#x6765;&#x81EA;1.13.2fmllauncher&#x548C;CoreMods&#xFF09;</p>
<p>&#x8FD9;&#x4E2A;&#x7248;&#x672C;Forge&#x4ECD;&#x7136;&#x6CA1;&#x6709;&#x7ED9;&#x51FA;&#x6559;&#x7A0B;&#x548C;&#x6587;&#x6863;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x901A;&#x8FC7;&#x4EE3;&#x7801;&#x5206;&#x6790;&#x6765;&#x81EA;&#x884C;&#x63A2;&#x7D22;&#x3002;</p>
<p>FML&#x5728;1.3.2&#x7684;10&#x4E2A;&#x5927;&#x7248;&#x672C;&#x4E4B;&#x540E;&#x7EC8;&#x4E8E;&#x518D;&#x4E00;&#x6B21;&#x91CD;&#x5199;&#x4E86;Mod&#x52A0;&#x8F7D;&#x673A;&#x5236;&#xFF0C;&#x8FD9;&#x6B21;&#x91CD;&#x5199;&#x5927;&#x91CF;&#x7684;&#x4F7F;&#x7528;&#x4E86;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html" target="_blank">ServiceLoader</a>&#x6765;&#x8FD0;&#x7528;SPI&#xFF08;Service Provider Interfaces&#xFF09;&#x4EE5;&#x53CA;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/stream/Stream.html" target="_blank">StreamAPI</a>&#x7B80;&#x5316;&#x4E86;&#x52A0;&#x8F7D;&#x7684;&#x4EE3;&#x7801;&#x3002;</p>
<p>&#x9996;&#x5148;&#x662F;&#x5BFB;&#x627E;&#x5E76;&#x52A0;&#x8F7D;CoreMod&#xFF1A;</p>
<ul>
<li><p>&#x5728;fmllauncher&#xFF08;&#x4EE5;&#x4E0B;&#x7B80;&#x79F0;FML&#xFF09;&#x7684;<a href="https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/fmllauncher/java/net/minecraftforge/fml/loading/FMLLoader.java" target="_blank">FMLLoader</a>&#x4E2D;<code>onInitialLoad</code>&#x65B9;&#x6CD5;&#x901A;&#x8FC7;ServiceLoader&#x83B7;&#x5F97;<code>ICoreModProvider</code>&#x7684;&#x5B9E;&#x4F8B;&#x3002;<br>&#x5176;&#x4E2D;&#xFF0C;<code>ICoreModProvider</code>&#x7684;&#x5B9E;&#x73B0;&#x5728;CoreMods&#x6A21;&#x5757;&#x4E2D;&#xFF0C;&#x88AB;&#x547D;&#x540D;&#x4E3A;<a href="https://github.com/MinecraftForge/CoreMods/blob/master/src/main/java/net/minecraftforge/coremod/CoreModProvider.java" target="_blank">CoreModProvider</a></p>
<pre><code class="lang-java">ServiceLoaderStreamUtils.errorHandlingServiceLoader(ICoreModProvider.class, serviceConfigurationError -&gt; LOGGER.fatal(CORE, <span class="hljs-string">&quot;Failed to load a coremod library, expect problems&quot;</span>, serviceConfigurationError)).forEach(coreModProviders::add);
...
coreModProvider = coreModProviders.get(<span class="hljs-number">0</span>);
</code></pre>
</li>
<li><p>&#x5728;FML&#x7684;<a href="https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/fmllauncher/java/net/minecraftforge/fml/loading/moddiscovery/ModDiscoverer.java" target="_blank">ModDiscoverer</a>&#x4E2D;<code>discoverMods</code>&#x65B9;&#x6CD5;&#x9996;&#x5148;&#x83B7;&#x5F97;<code>modFiles</code></p>
<pre><code class="lang-java"><span class="hljs-keyword">final</span> Map&lt;ModFile.Type, List&lt;ModFile&gt;&gt; modFiles = locatorList.stream()
      .peek(loc -&gt; LOGGER.debug(SCAN,<span class="hljs-string">&quot;Trying locator {}&quot;</span>, loc))
      .map(IModLocator::scanMods)
      .flatMap(Collection::stream)
      .peek(mf -&gt; LOGGER.debug(SCAN,<span class="hljs-string">&quot;Found mod file {} of type {} with locator {}&quot;</span>, mf.getFileName(), mf.getType(), mf.getLocator()))
      .collect(Collectors.groupingBy(ModFile::getType));
</code></pre>
</li>
<li><p>&#x968F;&#x540E;&#xFF0C;&#x904D;&#x5386;<code>modFiles</code>&#x83B7;&#x5F97;&#x7684;<code>mods</code>&#x6765;&#x5BFB;&#x627E;&#x6709;&#x6548;&#x7684;Mod</p>
<pre><code class="lang-java"><span class="hljs-keyword">for</span> (Iterator&lt;ModFile&gt; iterator = mods.iterator(); iterator.hasNext(); )
{
  ModFile mod = iterator.next();
  <span class="hljs-keyword">if</span> (!mod.getLocator().isValid(mod) || !mod.identifyMods()) {
      LOGGER.warn(SCAN, <span class="hljs-string">&quot;File {} has been ignored - it is invalid&quot;</span>, mod.getFilePath());
      iterator.remove();
      brokenFiles.add(mod);
  }
}
</code></pre>
</li>
<li><p>&#x5728;&#x904D;&#x5386;&#x7684;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;<code>ModFile</code>&#x7684;<code>identifyMods</code>&#x4F1A;&#x88AB;&#x8C03;&#x7528;&#xFF0C;&#x800C;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x4E2D;&#x4F1A;&#x5BFB;&#x627E;CoreMod</p>
<pre><code class="lang-java"><span class="hljs-keyword">this</span>.coreMods = ModFileParser.getCoreMods(<span class="hljs-keyword">this</span>);
</code></pre>
</li>
<li><p><code>ModFileParser</code>&#x7684;<code>getCoreMods</code>&#x662F;&#x8BFB;&#x53D6;CoreMod&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x4F1A;&#x6839;&#x636E;Mod&#x6587;&#x4EF6;&#x4E2D;&#x7684;<code>META-INF/coremods.json</code>&#x6765;&#x5224;&#x65AD;&#x4E00;&#x4E2A;Mod&#x662F;&#x5426;&#x662F;CoreMod</p>
<pre><code class="lang-java"><span class="hljs-keyword">final</span> Path coremodsjson = modFile.getLocator().findPath(modFile, <span class="hljs-string">&quot;META-INF&quot;</span>, <span class="hljs-string">&quot;coremods.json&quot;</span>);
<span class="hljs-keyword">if</span> (!Files.exists(coremodsjson)) {
  <span class="hljs-keyword">return</span> Collections.emptyList();
}
</code></pre>
</li>
<li><p>&#x91CD;&#x65B0;&#x56DE;&#x5230;<code>ModDiscoverer</code>&#x4E2D;&#xFF0C;&#x5C06;&#x6709;&#x6548;&#x7684;Mod&#x52A0;&#x5165;<code>loadingModList</code>&#x540E;&#xFF0C;&#x8C03;&#x7528;&#x5176;<code>addCoreMods</code>&#x65B9;&#x6CD5;</p>
<pre><code class="lang-java">loadingModList.addCoreMods();
</code></pre>
</li>
<li><p>&#x5728;FML&#x7684;<a href="https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/fmllauncher/java/net/minecraftforge/fml/loading/LoadingModList.java" target="_blank">LoadingModList</a>&#x4E2D;<code>addCoreMods</code>&#x4F9D;&#x6B21;&#x8C03;&#x7528;<code>CoreModProvider</code>&#x7684;<code>addCoreMod</code>&#x65B9;&#x6CD5;</p>
<pre><code class="lang-java">modFiles.stream().map(ModFileInfo::getFile).map(ModFile::getCoreMods).flatMap(List::stream).forEach(FMLLoader.getCoreModProvider()::addCoreMod);
</code></pre>
</li>
<li><p><code>addCoreMod</code>&#x65B9;&#x6CD5;&#x8C03;&#x7528;&#x4E86;CoreMods&#x6A21;&#x5757;<a href="https://github.com/MinecraftForge/CoreMods/blob/master/src/main/java/net/minecraftforge/coremod/CoreModEngine.java" target="_blank">CoreModEngine</a>&#x4E2D;&#x7684;<code>loadCoreMod</code>&#xFF0C;&#x8FD9;&#x91CC;&#x521D;&#x59CB;&#x5316;&#x4E86;&#x7A0D;&#x540E;&#x4F1A;&#x4F7F;&#x7528;&#x5230;&#x7684;<a href="https://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/toc.html" target="_blank">Nashorn</a>&#x811A;&#x672C;&#x5F15;&#x64CE;&#xFF0C;&#x8FD9;&#x4E2A;&#x5F15;&#x64CE;&#x968F;&#x540E;&#x4F1A;&#x88AB;&#x7528;&#x6765;&#x6267;&#x884C;CoreMod&#x7684;JavaScript&#x6765;&#x8FDB;&#x884C;transform&#x3002;&#x540C;&#x65F6;&#xFF0C;&#x901A;&#x8FC7;&#x5BF9;&#x811A;&#x672C;&#x5F15;&#x64CE;&#x7684;&#x521D;&#x59CB;&#x5316;&#x53C2;&#x6570;&#xFF0C;&#x4F7F;&#x7528;&#x4E86;&#x767D;&#x540D;&#x5355;&#x673A;&#x5236;&#x9650;&#x5236;&#x4E86;&#x811A;&#x672C;&#x6240;&#x4F7F;&#x7528;&#x7684;&#x7C7B;&#xFF0C;&#x53EA;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;ASM&#x76F8;&#x5173;&#x7684;&#x7C7B;</p>
<pre><code class="lang-java"><span class="hljs-keyword">final</span> NashornScriptEngineFactory nashornScriptEngineFactory = <span class="hljs-keyword">new</span> NashornScriptEngineFactory();
<span class="hljs-keyword">final</span> ScriptEngine scriptEngine = nashornScriptEngineFactory.getScriptEngine(
       s -&gt; ALLOWED_CLASSES.stream().anyMatch(s::equals)
);
</code></pre>
</li>
</ul>
<p>&#x52A0;&#x8F7D;&#x5E76;&#x521D;&#x59CB;&#x5316;&#x5B8C;CoreMod&#x540E;&#xFF0C;&#x4FBF;&#x662F;&#x8FDB;&#x884C;transform&#xFF1A;</p>
<ul>
<li><p>ModLauncher&#x4F1A;&#x548C;<a href="3.4.html">&#x539F;&#x7248;CoreMod/ModLauncher</a>&#x4E2D;&#x4E00;&#x6837;&#x8C03;&#x7528;<a href="https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/fmllauncher/java/net/minecraftforge/fml/loading/FMLServiceProvider.java" target="_blank">FMLServiceProvider</a>&#x5B9E;&#x73B0;&#x7684;&#x63A5;&#x53E3;<code>ITransformationService</code>&#x7684;<code>transformers</code>&#x65B9;&#x6CD5;&#xFF0C;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x4E86;<code>ITransformer</code>&#x7684;<code>List</code>&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-keyword">return</span> <span class="hljs-keyword">new</span> ArrayList(FMLLoader.getCoreModProvider().getCoreModTransformers());
</code></pre>
</li>
<li><p><code>getCoreModTransformers</code>&#x8C03;&#x7528;&#x4E86;<code>CoreModEngine</code>&#x7684;<code>initializeCoreMods</code>&#xFF0C;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x4F1A;&#x4F9D;&#x6B21;&#x4E3A;CoreMod&#x6784;&#x9020;<code>ITransformer</code>&#xFF0C;&#x5E76;&#x8FD4;&#x56DE;&#x7ED9;ModLauncher</p>
<pre><code class="lang-java"><span class="hljs-keyword">return</span> coreMods.stream().map(CoreMod::buildTransformers).flatMap(List::stream).collect(Collectors.toList());
</code></pre>
</li>
<li><p>ModLauncher&#x4F1A;&#x5728;&#x6307;&#x5B9A;&#x7684;&#x7C7B;&#xFF08;LaunchWrapper&#x662F;&#x6240;&#x6709;&#x7684;&#x7C7B;&#xFF09;&#x88AB;&#x52A0;&#x8F7D;&#x65F6;&#x8C03;&#x7528;<code>CoreModClassTransformer</code>&#x7684;<code>transform</code>&#x65B9;&#x6CD5;&#xFF0C;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x4F1A;&#x4F7F;&#x7528;Nashorn&#x8FD0;&#x884C;JavaScript&#x811A;&#x672C;</p>
<pre><code class="lang-java">result = (ClassNode) function.call(function, input);
</code></pre>
</li>
</ul>
<h1 id="&#x5236;&#x4F5C;&#x65B9;&#x6CD5;">&#x5236;&#x4F5C;&#x65B9;&#x6CD5;</h1>
<p>&#x4E0E;1.12.2&#x76F8;&#x6BD4;&#xFF0C;1.13.2&#x7684;CoreMod&#x52A0;&#x8F7D;&#x6D41;&#x7A0B;&#x53EF;&#x8C13;&#x662F;&#x76F8;&#x5F53;&#x590D;&#x6742;&#xFF0C;&#x8FD9;&#x6837;&#x590D;&#x6742;&#x7684;&#x6D41;&#x7A0B;&#x5374;&#x5E26;&#x6765;&#x4E86;CoreMod&#x5F00;&#x53D1;&#x7684;&#x7B80;&#x5316;&#x3002;<br>&#x4E0D;&#x8FC7;&#x7279;&#x522B;&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;1.13.2&#x4E0E;&#x4EE5;&#x5F80;&#x4E0D;&#x540C;&#xFF0C;CoreMod<strong>&#x5FC5;&#x987B;</strong>&#x5305;&#x542B;&#x5728;&#x4E00;&#x4E2A;&#x666E;&#x901A;&#x7684;Mod&#x4E2D;&#x3002;</p>
<p>&#x901A;&#x8FC7;&#x4E0A;&#x6587;&#x7684;&#x5206;&#x6790;&#xFF0C;&#x6211;&#x4EEC;&#x6293;&#x4F4F;&#x4E86;&#x4E24;&#x4E2A;&#x5173;&#x952E;&#x70B9;&#x2014;&#x2014;<code>coremods.json</code>&#x4E0E;JavaScript&#x3002;</p>
<h2 id="coremodsjson">coremods.json</h2>
<p>&#x8FD9;&#x4E2A;&#x6587;&#x4EF6;&#x4F4D;&#x4E8E;jar&#x4E2D;&#x7684;<code>META-INF/coremods.json</code>&#xFF0C;&#x91CC;&#x9762;&#x7684;&#x683C;&#x5F0F;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-json">{
  <span class="hljs-string">&quot;&#x811A;&#x672C;&#x540D;&#x79F0;&quot;</span>: <span class="hljs-string">&quot;&#x811A;&#x672C;&#x8DEF;&#x5F84;&quot;</span>,
  ...
}
</code></pre>
<ul>
<li>&#x5176;&#x4E2D;&#xFF0C;&#x811A;&#x672C;&#x8DEF;&#x5F84;&#x662F;&#x76F8;&#x5BF9;&#x4E8E;jar&#x6587;&#x4EF6;&#x7684;&#x8DEF;&#x5F84;&#xFF0C;&#x4F8B;&#x5982;<code>example.js</code>&#x4EE3;&#x8868;&#x7740;jar&#x6587;&#x4EF6;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x7684;<code>example.js</code></li>
</ul>
<p>&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x5B9E;&#x4F8B;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-json">{
  <span class="hljs-string">&quot;example&quot;</span>: <span class="hljs-string">&quot;example.js&quot;</span>
}
</code></pre>
<h2 id="javascript">JavaScript</h2>
<p>&#x8FD9;&#x662F;1.13.2-1.14.4 CoreMod&#x5236;&#x4F5C;&#x7684;&#x6838;&#x5FC3;&#xFF0C;&#x8FD9;&#x4E2A;&#x7248;&#x672C;&#x4E0D;&#x518D;&#x4F7F;&#x7528;Java&#x4EE3;&#x7801;&#x6765;&#x4FEE;&#x6539;&#x5176;&#x4ED6;class&#xFF0C;&#x8F6C;&#x4E3A;&#x53D7;&#x9650;&#x5236;&#x7684;JavaScript&#x811A;&#x672C;&#x8FDB;&#x884C;&#xFF0C;&#x5728;&#x8FD9;&#x4E2A;&#x811A;&#x672C;&#x4E2D;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x4E5F;&#x53EA;&#x80FD;&#x5B8C;&#x6210;&#x4FEE;&#x6539;&#x7C7B;&#x8FD9;&#x4E00;&#x4E2A;&#x5DE5;&#x4F5C;&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x8BBE;&#x8BA1;&#x4F7F;&#x5F97;CoreMod&#x65E0;&#x6CD5;&#x6267;&#x884C;&#x8FD9;&#x4E00;&#x5DE5;&#x4F5C;&#x5916;&#x7684;&#x5176;&#x4ED6;&#x64CD;&#x4F5C;&#xFF0C;&#x6781;&#x5927;&#x7A0B;&#x5EA6;&#x7684;&#x907F;&#x514D;&#x4E86;&#x8BF8;&#x5982;CoreMod&#x8C03;&#x7528;Minecraft&#x3001;&#x666E;&#x901A;Mod&#x7B49;&#x4F1A;&#x5BFC;&#x81F4;&#x9519;&#x8BEF;&#x7684;&#x64CD;&#x4F5C;&#x3002;&#x4E0D;&#x8FC7;&#xFF0C;&#x5176;&#x7528;&#x4E8E;&#x89E3;&#x6790;JavaScript&#x7684;<a href="https://openjdk.java.net/projects/nashorn/" target="_blank">Nashorn</a>&#x5F15;&#x64CE;&#x5728;Java 11&#x4E2D;&#x5DF2;&#x88AB;<a href="https://openjdk.java.net/jeps/335" target="_blank">&#x5F03;&#x7528;</a>&#x3002;</p>
<p>&#x9996;&#x5148;&#xFF0C;&#x5728;CoreMod&#x521D;&#x59CB;&#x5316;&#x65F6;&#xFF0C;&#x811A;&#x672C;&#x7684;<code>initializeCoreMod</code>&#x51FD;&#x6570;&#x4F1A;&#x88AB;&#x8C03;&#x7528;&#xFF0C;&#x8FD9;&#x4E2A;&#x51FD;&#x6570;&#x9700;&#x8981;&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;JavaScript&#x5BF9;&#x8C61;&#x6765;&#x58F0;&#x660E;&#x5C06;&#x8981;&#x4FEE;&#x6539;&#x7684;&#x76EE;&#x6807;class&#x548C;&#x4FEE;&#x6539;&#x6240;&#x4F7F;&#x7528;&#x7684;<code>transform</code>&#x51FD;&#x6570;&#xFF1A;</p>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">initializeCoreMod</span>(<span class="hljs-params"></span>) </span>{
    <span class="hljs-keyword">return</span> {
        <span class="hljs-string">&apos;&#x8F6C;&#x6362;&#x5668;&#x540D;&apos;</span>: {
            <span class="hljs-string">&apos;target&apos;</span>: {
                <span class="hljs-string">&apos;type&apos;</span>: <span class="hljs-string">&apos;CLASS&apos;</span>,
                <span class="hljs-string">&apos;name&apos;</span>: <span class="hljs-string">&apos;&#x76EE;&#x6807;&#x7C7B;&#x540D;&apos;</span>
            },
            <span class="hljs-string">&apos;transformer&apos;</span>: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">cn</span>) </span>{
                <span class="hljs-comment">//transform&#x51FD;&#x6570;</span>
            }
        },
        ...
    };
}
</code></pre>
<ul>
<li><code>type</code>&#x6307;&#x5B9A;&#x4E86;&#x76EE;&#x6807;&#x7684;&#x7C7B;&#x578B;<ul>
<li>&#x4E4B;&#x524D;&#x7684;&#x7248;&#x672C;&#x53EA;&#x6709;<code>CLASS</code>&#x8FD9;&#x4E00;&#x4E2A;&#x9009;&#x62E9;</li>
<li><a href="https://github.com/MinecraftForge/MinecraftForge/commit/943fedb073f832acb3472286369b6cc52358d4eb" target="_blank">1.14.3-27.0.16</a> &#x589E;&#x52A0;<code>FIELD</code>&#x4E0E;<code>METHOD</code></li>
</ul>
</li>
<li><code>transform</code>&#x51FD;&#x6570;&#x4F1A;&#x5728;&#x76EE;&#x6807;&#x7C7B;&#x88AB;&#x52A0;&#x8F7D;&#x65F6;&#x8C03;&#x7528;&#xFF0C;&#x4F20;&#x5165;&#x4E00;&#x4E2A;&#x4E8E;<code>type</code>&#x5BF9;&#x5E94;&#x7684;<code>Node</code>&#xFF08;<code>ClassNode</code>&#x3001;<code>FieldNode</code>&#x6216;<code>MethodNode</code>&#xFF09;&#xFF0C;&#x5728;&#x6E38;&#x620F;&#x8FD0;&#x884C;&#x65F6;&#x4E3A;srg&#x6DF7;&#x6DC6;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x8FD4;&#x56DE;&#x4FEE;&#x6539;&#x5B8C;&#x540E;&#x7684;<code>Node</code>&#x5BF9;&#x8C61;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x51FA;&#x73B0;&#x7C7B;&#x578B;&#x8F6C;&#x6362;&#x9519;&#x8BEF;</li>
</ul>
<p>&#x4E00;&#x4E2A;&#x4FEE;&#x6539;<code>net/minecraft/client/gui/GuiPlayerTabOverlay</code>&#x4E2D;<code>func_175249_a</code>(srg)&#x65B9;&#x6CD5;&#x7684;&#x5B9E;&#x4F8B;&#xFF1A;</p>
<pre><code class="lang-javascript"><span class="hljs-comment">//&#x4F7F;&#x7528;Java.type&#xFF0C;&#x7C7B;&#x4F3C;import</span>
<span class="hljs-keyword">var</span> ASMAPI = Java.type(<span class="hljs-string">&apos;net.minecraftforge.coremod.api.ASMAPI&apos;</span>);
<span class="hljs-keyword">var</span> Opcodes = Java.type(<span class="hljs-string">&apos;org.objectweb.asm.Opcodes&apos;</span>);

<span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">initializeCoreMod</span>(<span class="hljs-params"></span>) </span>{
    <span class="hljs-keyword">return</span> {
        <span class="hljs-string">&apos;PlayerTabTransformer&apos;</span>: {
            <span class="hljs-string">&apos;target&apos;</span>: {
                <span class="hljs-string">&apos;type&apos;</span>: <span class="hljs-string">&apos;CLASS&apos;</span>,
                <span class="hljs-string">&apos;name&apos;</span>: <span class="hljs-string">&apos;net/minecraft/client/gui/GuiPlayerTabOverlay&apos;</span>
            },
            <span class="hljs-string">&apos;transformer&apos;</span>: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">cn</span>) </span>{
                <span class="hljs-comment">//&#x904D;&#x5386;ClassNode&#x4E0B;&#x7684;methods</span>
                cn.methods.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">mn</span>) </span>{
                    <span class="hljs-keyword">if</span> (mn.name === <span class="hljs-string">&apos;func_175249_a&apos;</span>) {
                        <span class="hljs-comment">//&#x8BF7;&#x5728;&#x8FD9;&#x91CC;&#x5BF9;ClassNode&#x548C;MethodNode&#x8FDB;&#x884C;ASM&#x64CD;&#x4F5C;</span>
                    }
                });

                <span class="hljs-comment">//&#x8FD4;&#x56DE;&#x4FEE;&#x6539;&#x540E;&#x7684;ClassNode&#x5BF9;&#x8C61;</span>
                <span class="hljs-keyword">return</span> cn;
            }
        }
    };
}
</code></pre>
<ul>
<li>&#x7531;&#x4E8E;JavaScript&#x7684;<a href="https://thomas-yang.me/projects/oh-my-dear-js/" target="_blank">&#x8BED;&#x8A00;&#x7279;&#x6027;</a>&#xFF0C;&#x5168;&#x7B49;&#x4E8E;&#xFF08;===&#xFF09;&#x4E0E;Java&#x7684;&#x7B49;&#x4E8E;&#xFF08;==&#xFF09;&#x6BD4;&#x8F83;&#x7C7B;&#x4F3C;&#xFF0C;&#x5728;&#x6BD4;&#x8F83;<code>String</code>&#x65F6;&#x5168;&#x7B49;&#x4E8E;&#x4E0E;<code>equals</code>&#x8F83;&#x4E3A;&#x7C7B;&#x4F3C;</li>
<li>Java.type&#x8F7D;&#x5165;&#x7684;&#x7C7B;&#x6709;&#x767D;&#x540D;&#x5355;&#x673A;&#x5236;&#xFF0C;&#x76EE;&#x524D;&#x4EC5;&#x9650;&#x4E8E;&#x8F7D;&#x5165;ASM&#x5E93;&#x4E2D;&#x7684;&#x7C7B;&#x4E0E;Forge&#x63D0;&#x4F9B;&#x7684;<code>ASMAPI</code></li>
<li>&#x5982;&#x679C;&#x65E0;&#x9700;&#x4F7F;&#x7528;<code>ClassNode</code>&#x5BF9;&#x8C61;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;<code>METHOD</code>&#x4F5C;&#x4E3A;<code>type</code>&#xFF0C;&#x51CF;&#x5C11;&#x904D;&#x5386;&#x4EE3;&#x7801;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="4.2.html" class="navigation navigation-prev " aria-label="Previous page: 1.6.1-1.12.2">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="5.html" class="navigation navigation-next " aria-label="Next page: 5 Mixin">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.13.2-1.14.4","level":"1.7.3","depth":2,"next":{"title":"5 Mixin","level":"1.8","depth":1,"path":"5.md","ref":"5.md","articles":[{"title":"配置","level":"1.8.1","depth":2,"path":"5.1.md","ref":"5.1.md","articles":[]},{"title":"引导","level":"1.8.2","depth":2,"path":"5.2.md","ref":"5.2.md","articles":[]},{"title":"注入","level":"1.8.3","depth":2,"path":"5.3.md","ref":"5.3.md","articles":[]},{"title":"修改","level":"1.8.4","depth":2,"path":"5.4.md","ref":"5.4.md","articles":[]},{"title":"定位","level":"1.8.5","depth":2,"path":"5.5.md","ref":"5.5.md","articles":[]},{"title":"融合","level":"1.8.6","depth":2,"path":"5.6.md","ref":"5.6.md","articles":[]},{"title":"扩展","level":"1.8.7","depth":2,"path":"5.7.md","ref":"5.7.md","articles":[]},{"title":"调试","level":"1.8.8","depth":2,"path":"5.8.md","ref":"5.8.md","articles":[]}]},"previous":{"title":"1.6.1-1.12.2","level":"1.7.2","depth":2,"path":"4.2.md","ref":"4.2.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"4.3.md","mtime":"2019-09-08T03:42:53.149Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-08T04:47:05.818Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

